<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Registration Page</title>
    </head>
    <body>
        <?php
            session_start();           
            echo '<h1>Registration Page</h1>';           
        ?>
        
        <form action="registerUser.php" method="post" name="loginForm">
            <p><label for="username">Enter Username: </label></p>
            <p><input type="text" name="username" id="username" /></p>
            <p><label for="pword">Enter Password: </label></p>
            <p><input type="password" name="pword" id="pword" /></p>
            <p><label for="cpword">Confirm Password: </label></p>
            <p><input type="password" name="cpword" id="cpword" /></p>
            <p><input type="submit" name="submit" value="Register" /></p>
        </form>
        <div>
            <?php 
                if (isset($_POST['submit']))
                {    
                    echo $_SESSION['message']; 
                }
                else 
                {
                    
                }
            ?>
        </div>
    </body>
</html>
